var warehouseForm = function(){
	var template = /*html*/`
		<el-form :model="search" :inline="true" label-width="75px" > 
			<el-form-item label="采购单号">
				<el-input placeholder="请输入采购单号" v-model="search.purchaseOrder" clearable>
				</el-input>
			</el-form-item>
			<el-form-item label="订单编号">
				<el-input placeholder="订单编号/工厂型号/客户型号" v-model="search.orderId" clearable>
				</el-input>
			</el-form-item> 
			<el-form-item label="验收人">
				  <el-select v-model="search.approvalUser" clearable placeholder="请选择">
				    <el-option
				      v-for="item in approvalUsers"
				      :key="item.id"
				      :label="item.userName"
				      :value="item.id">
				    </el-option>
				  </el-select>
			</el-form-item>
			<el-form-item label="仓库">
				  <el-select v-model="search.warehouse" clearable placeholder="请选择">
				    <el-option
				      v-for="item in warehouses"
				      :key="item.id"
				      :label="item.name"
				      :value="item.id">
				    </el-option>
				  </el-select>
			</el-form-item>
			<el-form-item>
				<el-button type="primary" @click="searchData">搜索</el-button>
			</el-form-item>
		</el-form>
	`;
	return {
		 props: { 
			 search:{
				 type: Object,
			     required: true
			 },
			 approvalUsers:{
				 type:Object,
				 required: true
			 },
			 warehouses:{
				 type:Object,
				 required: true
			 },
		 },
		 data:function(){
			 return {}
		 },
		 methods:{
			 searchData:function(){
				 this.$emit('search-data');
			 }
		 },
		 template: template
	}
}();